package cn.group.service;


import cn.group.domain.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface TeacherService {
    List<Teacher>getAll();
    PageInfo<Teacher>getTeacherByPage(Integer currentPage,Integer pagesize);
    boolean addOne(Teacher teacher);
    boolean modifyOne(Teacher teacher);
    Teacher getOneById(Integer id);
    boolean removeOne(Integer id);
    Teacher queryByUsername(String username);
}
